#pragma once

#include "includes.h"
#include <map>

/*#include <map>

using namespace std;
std::map<string, uint32> definedColours;
*/


struct colourAssigment{
	String tag;
	Colour colour;
	colourAssigment(String _tag, Colour _colour) : tag(_tag), colour(_colour){};
};
void addStyleXml(String tag, Colour colour, XmlElement *whereToAdd);
String leading2zero(String stringToExpand);
XmlElement* giveXMLtext(const String &tag, const String &value);
XmlElement* makePolygon(XmlElement *parent);
bool placemark2dTo3d(XmlElement &placemark);

class Converter : public ThreadWithProgressWindow
{
public:
    Converter(XmlElement *XMLout_,int count);
    ~Converter();
    void run();
private:
	XmlElement *XMLout;
	int XMLoutcount;
};

//void ComboBox::showPopup ();

#define deactivateAllButtonsInArray(buttonsOwnerArray) \
	for(int activateMacroj=0; activateMacroj<buttonsOwnerArray.size(); activateMacroj++) \
	{\
		buttonsOwnerArray[activateMacroj]->setEnabled(false);\
	}

#define activateAllButtonsInArray(buttonsOwnerArray) \
	for(int activateMacroj=0; activateMacroj<buttonsOwnerArray.size(); activateMacroj++) \
	{\
		buttonsOwnerArray[activateMacroj]->setEnabled(true);\
	}

